<?php /* Smarty version 2.6.18, created on 2009-11-19 00:22:50
         compiled from systemPM.tpl */ ?>
<h1>Price Management</h1>
<div id="blanket" style="display:none;"></div>
<table class="blue" width="100%">
	<tr valign="top" width="100%">
		<td width="99%" align="left">
			<div id="search">
				<form name="searchForm" id="searchForm" method="POST">
					<h3><b>Searching<b></h3>
					<table width="100%">
						<tr>
							<td width="15%"><label>Country:</label></td>
							<td>
								<div id="country">
								<select id="country" name="country" onchange="doajaxAction('/admin/dataOMProvince/country/'+document.searchForm.country.value,0,'province');">
									<option value=""> --- </option>
									<?php $_from = $this->_tpl_vars['countries']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['country']):
?>
									<option value="<?php echo $this->_tpl_vars['country']['country_code']; ?>
"><?php echo $this->_tpl_vars['country']['country']; ?>
</option>
									<?php endforeach; endif; unset($_from); ?>
								</select>
								</div>
							</td>
						</tr>
						<tr>
							<td><label>Province:</label></td>
							<td>
								<div id="province">
								<select name="province">
									<option value=""> --- </option>
								</select>
								</div>
							</td>
						</tr>
						<tr>
							<td><label>FMA:</label></td>
							<td>
								<div id="fma">
								<select name="fma">
									<option value=""> --- </option>
								</select>
								</div>
							</td>
						</tr>
						<tr>
							<td><label>Organism Group:</label></td>
							<td>
								<select name="group">
									<option value=""> --- </option>
									<?php $_from = $this->_tpl_vars['groups']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['group']):
?>
									<option value="<?php echo $this->_tpl_vars['group']['organism_group_id']; ?>
">
										<?php echo $this->_tpl_vars['group']['organism_group']; ?>

									</option>
									<?php endforeach; endif; unset($_from); ?>
								</select>
							</td>
						</tr>
						<tr>
							<td><label>Name:</label></td>
							<td>
								<input type="text" name="names">
							</td>
							<td align="right">
								<input type="button" value="Go" onclick="search_organism();">
							</td>
						</tr>
					</table>
				</form>
			</div>
			<br><br>
		</td>
		<td>
			<a onclick="toggle_div('search');" href="javascript:void(0);">
				<img id="show_arrow" border="0" src="/app/default/www/images/arrow-down.png" alt="Show Search"/>
			</a>
		</td>
	</tr>
</table>
<br><br>
<div id="data_table">

</div>
<?php echo '
<script language="javascript">
	ekimo_drag_region("","popUpDiv");
	
	function edit_item(id){
		doajaxAction(\'/admin/systemPMEdit/id/\'+id,0,\'main_content\');
		//popup(\'popUpDiv\');
	}
	
	function search_organism(){
		var params=\'/fma/\'+document.searchForm.fma.value+
				   \'/group/\'+document.searchForm.group.value+
				   \'/names/\'+document.searchForm.names.value;
		doajaxAction(\'/admin/systemPMSearch\'+params,0,\'data_table\');
	}
</script>
'; ?>




	
	
	